#include <stdio.h>
#include <pthread.h>

void *FunTest( void * arg )
{

}

int main(int argc, char const *argv[])
{
    unsigned long ldCnt = 0;
    int iRet = 0;
    pthread_t ptFunTest;

    do
    {
        iRet = pthread_create( &ptFunTest, NULL ,  FunTest, NULL );
//        pthread_detach( ptFunTest );
        printf( "Thread Create # %ld\n", ldCnt++ );
        
    }while( iRet == 0 );

    return 0;
}



/*
线程创建有两种模式:
    
函数 pthread_detach
*/